export default[
    //重定向
    {
        path:'/',
        redirect:'/login'
    },
    {
        path:"/login",
        component:()=>import('@/views/Login.vue')
    },
    //主页
    {
        path:'/index',
        name:'index',
        component:()=>import('@/views/index.vue'),
        children:[
            {
                path:'/index/',
                redirect:'/index/dataAnalysis/dataone'
            },
            //数据分析
            {
                path:'/index/dataAnalysis/dataone',
                name:'dataone',
                component:()=>import('@/components/Dateanalysis/Dataone.vue')
            },
            {
                path:'/index/dataAnalysis/datatwo',
                name:'datatwo',
                component:()=>import('@/components/Dateanalysis/Datatwo.vue')
            },
            {
                path:'/index/dataAnalysis/datathree',
                name:'datathree',
                component:()=>import('@/components/Dateanalysis/Datathree.vue')
            },
            {
                path:'/index/dataAnalysis/datafour',
                name:'datafour',
                component:()=>import('@/components/Dateanalysis/Datafour.vue')
            },
            //资产管理
            {
                path:'/index/propertyone',
                name:'propertyone',
                component:()=>import('@/components/Property/Propertyone.vue')
            },
            //营销管理
            //优惠券
            {
                path:'/index/youhuiquanfirst',
                name:'youhuiquanfirst',
                component:()=>import('@/components/Marketing/youhuiqan/youhuiquanfirst.vue')
            },
            {
                path:'/index/youhuiquanone',
                name:'youhuiquanone',
                component:()=>import('@/components/Marketing/youhuiqan/youhuiquanone.vue')
            },
            {
                path:'/index/youhuiquantwo',
                name:'youhuiquantwo',
                component:()=>import('@/components/Marketing/youhuiqan/youhuiquantwo.vue')
            },
            //限时折扣
            {
                path:'/index/zhekoufirst',
                name:'zhekoufirst',
                component:()=>import('@/components/Marketing/zhekou/zhekoufirst.vue')
            },
            {
                path:'/index/zhekouone',
                name:'zhekouone',
                component:()=>import('@/components/Marketing/zhekou/zhekouone.vue')
            },
            //满减满折
            {
                path:'/index/manjianfirst',
                name:'manjianfirst',
                component:()=>import('@/components/Marketing/manjian/manjianfirst.vue')
            },
            {
                path:'/index/manjianone',
                name:'manjianone',
                component:()=>import('@/components/Marketing/manjian/manjianone.vue')
            },
            //秒杀
            {
                path:'/index/miaoshafirst',
                name:'miaoshafirst',
                component:()=>import('@/components/Marketing/miaosha/miaoshafirst.vue')
            },
            {
                path:'/index/miaoshaone',
                name:'miaoshaone',
                component:()=>import('@/components/Marketing/miaosha/miaoshaone.vue')
            },
            //满包邮
            {
                path:'/index/manbaofirst',
                name:'manbaofirst',
                component:()=>import('@/components/Marketing/manbao/manbaofirst.vue')
            },
            {
                path:'/index/manbaoone',
                name:'manbaoone',
                component:()=>import('@/components/Marketing/manbao/manbaoone.vue')
            },
            //满赠
            {
                path:'/index/manzengfirst',
                name:'manzengfirst',
                component:()=>import('@/components/Marketing/manzeng/manzengfirst.vue')
            },
            {
                path:'/index/manzengone',
                name:'manzengone',
                component:()=>import('@/components/Marketing/manzeng/manzengone.vue')
            },
            //新客专享价
            {
                path:'/index/xinke',
                name:'xinke',
                component:()=>import('@/components/Marketing/xinke.vue')
            },
            //拼团
            {
                path:'/index/pintuanfirst',
                name:'pintuanfirst',
                component:()=>import('@/components/Marketing/pintuan/pintuanfirst.vue')
            },
            {
                path:'/index/pintuanone',
                name:'pintuanone',
                component:()=>import('@/components/Marketing/pintuan/pintuanone.vue')
            },
            //套餐
            {
                path:'/index/taocanfirst',
                name:'taocanfirst',
                component:()=>import('@/components/Marketing/taocan/taocanfirst.vue')
            },
            {
                path:'/index/taocanone',
                name:'taocanone',
                component:()=>import('@/components/Marketing/taocan/taocanone.vue')
            },
            //场景营销
            {
                path:'/index/changjingfirst',
                name:'changjingfirst',
                component:()=>import('@/components/Marketing/changjing/changjingfirst.vue')
            },
            {
                path:'/index/changjingone',
                name:'changjingone',
                component:()=>import('@/components/Marketing/changjing/changjingone.vue')
            },
            //设置
            //Banner图管理
            {
                path:'/index/Banfirst',
                name:'Banfirst',
                component:()=>import('@/components/Setup/Ban/Banfirst.vue')
            },
            {
                path:'/index/Banone',
                name:'Banone',
                component:()=>import('@/components/Setup/Ban/Banone.vue')
            },
            //员工管理
            {
                path:'/index/Satfffirst',
                name:'Satfffirst',
                component:()=>import('@/components/Setup/Satff/Satfffirst.vue')
            },
            {
                path:'/index/Satfffone',
                name:'Satfffone',
                component:()=>import('@/components/Setup/Satff/Satfffone.vue')
            },
            //角色管理
            {
                path:'/index/Rolefirst',
                name:'Rolefirst',
                component:()=>import('@/components/Setup/Role/Rolefirst.vue')
            },
            {
                path:'/index/Roleone',
                name:'Roleone',
                component:()=>import('@/components/Setup/Role/Roleone.vue')
            },
            //操作日志
            {
                path:'/index/Daily',
                name:'Daily',
                component:()=>import('@/components/Setup/Daily.vue')
            },
            //个人信息
            {
                path:'/index/Ren',
                name:'Ren',
                component:()=>import('@/components/Setup/Ren.vue')
            },
            //二级404
            {
                path:'/index/:error(.*)',
                component: () => import('@/views/NotFount.vue')
            }
        ]
    },
    //登录
    {
        path:'/Login',
        name:'login',
        component:()=>import('@/views/Login.vue')
    },
    //404
    {
        path:'/:error(.*)',
        component: () => import('@/views/NotFount.vue')
    }
]